<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>RBookmarks - Share Knowledge With You</title>
    <%= stylesheet_link_tag 'main' %>
    <%= javascript_include_tag "prototype", "effects", "application" %>
  </head>
  <body>
    <div id="header">
      <span id="logo"><%= link_to 'RBookmarks', 'http://www.rbookmarks.cn/' %></span>
      <ul id="nav">
        <li><%= link_to "首页", :controller => "/" %></li>
        <li><%= link_to "我的收藏", :controller => 'url', :action => 'list' %></li>
        <li><%= link_to "个人设置", :controller => 'user', :action => 'config' %></li>
        <li><%= link_to "添加新收藏", :controller => 'url', :action => 'new' %></li>
      </ul>
      
      <ul id="stat">
        <li>
        <% if login? %>
          Hi, <%= current_user_name %>
        <% end %>
        </li>
        <li><%= link_to "注册", :controller => 'account', :action => 'signup' %></li>
        <li>
        <% if login? %>
          <%= link_to "注销", :controller => 'account', :action => 'logout' %>
        <% else %>
          <%= link_to "登录", :controller => 'account', :action => 'login' %>
        <% end %>
        </li>
      </ul>
    </div>
    
    <div id="container">
      
      <div id="content">
        <% if flash[:notice] %><div class="notice"><%= flash[:notice] %></div><% end %>
        <% if flash[:error] %><div class="error"><%= flash[:error] %></div><% end %>
        <%= yield %>
      </div>
      
      <div id="right">
        <%= yield :right %>
      </div>
      <br style="clear:both;" />
    </div>
    
    <div id="footer">
      <p class="credit">
        Powered by <%= link_to "ChinaonRails.com", "http://www.chinaonrails.com/", :popup => true %>
        <br/>&copy; 2007-2008 <%= link_to "Team3", "http://groups.google.com/group/chinaonrails-team3", :popup => true %>
      </p>
      <br style="clear:both;" />
    </div>
  </body>
</html>